package com.joysuch.wwyt.workflow.bean;

import com.joysuch.wwyt.workflow.entity.WorkFlowTask;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * @Author ZhangDong
 * @Date 2020/11/30 10:11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WorkFlowScreenDto {

    @ApiModelProperty("key: processId ,value: config信息")
    private Map<Long, WorkFlowLocationConfigBean<WorkFlowScreenConfigBean, WorkFlowRailAlarmConfigBean>> map;
    @ApiModelProperty("业务数据集合-地图上显示的全部数据")
    private List<WorkFlowTask> taskList;
    private List<WorkFlowTaskSimpleView> simpleTaskList;
    @ApiModelProperty("左侧查询分页数据")
    private List<WorkFlowTask> pageTaskList;
    @ApiModelProperty("左侧查询分页数据总大小")
    private Integer length;
    @ApiModelProperty("专栏编码")
    private String typeCode;

    public WorkFlowScreenDto(Map<Long, WorkFlowLocationConfigBean<WorkFlowScreenConfigBean, WorkFlowRailAlarmConfigBean>> map,
                             List<WorkFlowTask> taskList, String typeCode) {
        this.map = map;
        this.taskList = taskList;
        this.typeCode = typeCode;
    }
}
